import {createApp} from 'vue'
// import './style.css'
import App from './App.vue'
import router from '@/router/index.ts'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/dist/locale/zh-cn.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {createPinia} from 'pinia'

const pinia = createPinia()
//全局注册ConfirmUtil
import ConfirmUtil from './utils/ConfirmUtil'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router)
app.use(pinia)
app.use(ElementPlus,{locale})
app.mount('#app')
app.config.globalProperties.$ConfirmUtil=ConfirmUtil    // 全局注册